package com.validation.validator;

import java.util.Collection;
import java.util.Map;

public class NotEmptyValidator {

    public void validate(Object value,String message){
        new NotNullValidator().validate(value,message);
        if(value instanceof Collection){
            Collection collection=(Collection)value;
            collection.isEmpty();
        }
        if(value instanceof Map){
            Map map=(Map)value;
            map.isEmpty();
        }
    }

}
